<name>Saggitarius</name>
<profession>Grandmaster Teacher of Bow</profession>
<faction>Centaurs</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Blessings be upon thee from on high!</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Mmm? Oh I didn't see you there.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>Is bow the only ranged weapon skill in this world?</text>
      <npc>
        <reply>
          <text>No, young ones. If you get around you will find that some monsters, like cyclopses, may simply throw things at you, and you'd better step out of the way. But if you want your place among the stars you do not study that skill. The bow and the crossbow are powerful weapons. If you master them well, and find good ammunition, you are a match to every spellcaster. If you go first, of course ... but then you can always hunt boars.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Bow Grandmaster.</text>
      <npc>
        <reply>
          <if><grandmaster>Bow</grandmaster></if>
          <text>You already are a grandmaster, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Bow</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Explorer<class></if>
          <text>First, you must be promoted to Ranger.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Warrior<class></if>
          <text>First, you must be promoted to Ranger.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>Knight</class></if>
          <text>Knights cannot achieve grandmaster status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><class>!Ranger</class></if>
          <text>Only Rangers can achieve grandmaster status.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>!Bow</master></if>
          <text>Before you can be taught grandmastery, you must become a master.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><grandmasterlevel>!Bow</grandmasterlevel></if>
          <text>You are not good enough yet, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!10000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-10000</gold>
            <grandmaster>Bow</grandmaster>
            <log>[name] Bow Grandmaster</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Taking our leave, sir!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>